﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pgDetalle.aspx.cs" Inherits="EGuayas.Web.Auditoria.admin.Global.pgDetalle" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/Resources/css/Style.css" rel="stylesheet" />
    <!-- Load Ext JS -->
    <script src="../../../Resources/js/Global.js"></script>
    <script>
    </script>
</head>
<body>
    <form runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server"></ext:ResourceManager>
        <ext:Viewport ID="vipContenedor" runat="server" Layout="FitLayout">
            <Items>
                          <ext:FormPanel 
                           ID="frmAuditoria" 
                           runat="server" 
                           Border="false"
                          
                           ButtonAlign="Center"
                           BodyStyle="background-color:#B6C1A6;"
                           BodyPadding="10"
                           Height="250"
                           Layout="Form">
                           <Items>
                                 <ext:FormPanel 
                                   ID="frmExpAud" 
                                   runat="server" 
                                   Border="false"
                                   ButtonAlign="Center"
                                   BodyStyle="background-color:transparent;"
                                   BodyPadding="10"
                                   Layout="Form">
                                   <Items>
                                    <%-- Hidden almacena id de expediente auditoria --%>
                                    <ext:Hidden ID="hddIdExpAud" runat="server"  Text=""></ext:Hidden>
                                    <ext:TextField ID="txtNombre"  runat="server"  Name ="Nombre"   FieldLabel ="Nombre del Expediente:" LabelAlign="Top" AnchorHorizontal="85%" AllowBlank="false" ReadOnly="true"></ext:TextField>
                                    <ext:TextArea  ID="txtDescrip" runat="server"  Name ="Descrip"  FieldLabel ="Descripción" LabelAlign="Top" AnchorHorizontal="85%" ReadOnly="true"></ext:TextArea>
                                    <ext:TextField ID="txtCodigo" runat="server"  Name ="Codigo"  FieldLabel ="Codigo"  LabelSeparator="" LabelAlign="Top" AnchorHorizontal="85%" AllowBlank="false"></ext:TextField>
                                 </Items>
                                   <Listeners>
                                            <ValidityChange Handler="#{btnSave}.setDisabled(!valid);" />
                                   </Listeners>
                                   <Buttons>
                                      <ext:Button ID="btnSave" runat="server" Text="Aceptar" Disabled="true">
                                        <DirectEvents>
                                            <Click OnEvent="btnSave_Click">
                                                <ExtraParams>
                                                    <ext:Parameter Name="prmValues" Value="Ext.encode(#{frmExpAud}.getForm().getValues())" Mode="Raw" />
                                                </ExtraParams>
                                                <EventMask ShowMask="True"></EventMask>
                                            </Click>
                                        </DirectEvents>
                                      </ext:Button>
                                   </Buttons>  
                                 </ext:FormPanel>                               
                                <ext:Panel   runat="server"    Layout="Fit">
                                    <Items>
                                        <ext:UserControlLoader ID="wuc_obliga_licencia001"  UserControlID="wuc_obliga_licencia"  runat="server" Path="~/Auditoria/admin/Global/wucLickObligaciones.ascx"  OnComponentAdded="OnObligacionAdded"/>                        
                                    </Items>
                                    
                                </ext:Panel>                                
                           </Items>
                           <Listeners>
                             
                           </Listeners>                           
                         </ext:FormPanel>
                     
            </Items>
        </ext:Viewport>
    </form>
     <ext:XScript ID="XScript1" runat="server">
        <script type="text/javascript">
            var pgFnAdmin = new Object();
            pgFnAdmin.winUrl = null;
            //App.DetallaNuevaAuditoria  url=~/Auditoria/admin/Global/wucLickObligaciones.ascx
            pgFnAdmin.setReadOnly = function () {
                try 
                {                  
                    AppGlobalJs.setReadOnly(#{frmAuditoria},true);                
                } catch (jsbug) {
                    AppGlobalJs.showBug("pgFn.setReadOnly :" + jsbug)
                }
            }
        </script>
    </ext:XScript>
</body>
</html>
